//
//  QsbkOnlyContextModel.h
//  NewProject
//
//  Created by Livespro on 2017/4/27.
//  Copyright © 2017年 FZ. All rights reserved.
//

#import "BaseModel.h"
#import "QsbkOnlyContextUserModel.h"
@class ContextVotes;
@class CommentContextModel;

@interface QsbkOnlyContextModel : BaseModel

@property (nonatomic,   copy)  NSString *format;//类型  word  image

@property (nonatomic,   copy)  NSString *image;

@property (nonatomic, strong)  NSDictionary *image_size;//"image_size" = {m =(421,750,58731);s =(198,352,16077);};

@property (nonatomic,   copy)  NSString *high_loc;//中图

@property (nonatomic,   copy)  NSString *low_loc;//小图

@property (nonatomic,   copy)  NSString *high_url;//video 链接

@property (nonatomic,   copy)  NSString *low_url;

@property (nonatomic,   copy)  NSString *pic_loc;

@property (nonatomic, strong)  NSArray *pic_size;//video图size

@property (nonatomic,   copy)  NSString *pic_url;//video图地址

@property (nonatomic, assign)  NSInteger published_at;

@property (nonatomic,   copy)  NSString *tag;

@property (nonatomic, strong)  ContextVotes *votes;

@property (nonatomic,   copy)  NSString *created_at;

@property (nonatomic,   copy)  NSString *content;

@property (nonatomic,   copy)  NSString *state;

@property (nonatomic, assign) NSInteger comments_count;

@property (nonatomic, assign) BOOL allow_comment;

@property (nonatomic, assign) NSInteger share_count;

@property (nonatomic,   copy)  NSString *type;//是否热门 eg: hot

@property (nonatomic, strong)  QsbkOnlyContextUserModel *user;

@property (nonatomic, assign)  NSInteger id_stand;

@property (nonatomic, strong)  CommentContextModel *hot_comment;

@property (nonatomic, assign)  CGFloat contentHeight;//文本高度

@property (nonatomic, assign)  CGFloat imageHeight;//图片高度

@property (nonatomic, assign)  CGFloat cellHeight;

@end

@interface ContextVotes : BaseModel

@property (nonatomic, assign)  NSInteger up;

@property (nonatomic, assign)  NSInteger down;

@end

@interface CommentContextModel : BaseModel

@property (nonatomic,   copy)  NSString *status;

@property (nonatomic, assign)  NSInteger user_id;

@property (nonatomic, assign)  NSInteger floor;

@property (nonatomic,   copy)  NSString *ip;

@property (nonatomic,   copy)  NSString *created_at;//评论时间

@property (nonatomic, assign)  NSInteger comment_id;

@property (nonatomic, assign)  NSInteger pos;

@property (nonatomic,   copy)  NSString *content;//内容

@property (nonatomic,   copy)  NSString *source;//来源 -- eg:android

@property (nonatomic, assign)  NSInteger like_count;

@property (nonatomic, assign)  NSInteger article_id;

@property (nonatomic, strong)  QsbkOnlyContextUserModel *user;

@end
